<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$setting.webname}--我的课程</title>
    <link rel="shortcut icon" href="/public/static/admin/uploads/set/{$setting['ico']}">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <link type="text/css" rel="stylesheet" href="/public/static/home/themes/css/base.css">
    <link type="text/css" rel="stylesheet" href="/public/static/home/themes/css/home.css">
    <script type="text/javascript" src="/public/static/home/themes/js/jquery.min.js"></script>
    <script type="text/javascript" src="/public/static/home/themes/js/slider.js"></script>
    <script type="text/javascript" src="/public/static/home/themes/js/tab.js"></script>
</head>
<body style="background:#fafafa">

<section class="aui-flexView">
    <header class="aui-navBar aui-navBar-fixed b-line">
        <a href="javascript:history.back(-1)" class="aui-navBar-item">
            <i class="icon icon-return"></i>
        </a>
        <div class="aui-center">
            <span class="aui-center-title">我的课程</span>
        </div>
    </header>
    <section class="aui-scrollView">
        <div class="aui-course-box">
            {volist name="list" id='vo' }
            <a href="javascript:;" class="aui-course-item">
                <div class="aui-flex">
                    <div class="aui-flex-box">
                        {$vo.start_time|date="Y-m-d",###} - {$vo.end_time|date="Y-m-d",###}
                    </div>
                    {if condition="$vo.status eq 1"}
                    <div class="aui-flex-yes" style="color:#fe5a69">待上课</div>
                    {elseif condition="$vo.status eq 2" /}
                    <div class="aui-flex-yes" style="color:#f8ac59">上课中</div>
                    {else /}
                    <div class="aui-flex-yes" style="color:green">已毕业</div>
                    {/if}
                </div>
                <div class="aui-course-title">
                    <h2>{$vo.type_name}</h2>
                    <p>{$vo.course}</p>
                </div>
                <div  class="aui-flex">
                    <div class="aui-flex-box">
                        <h3>安然老师</h3>
                    </div>
                </div>
                <div class="aui-course-button">
                    <button onclick="location.href='{$vo.certificate_photo}'"><i class="icon icon-data"></i>查看证书</button>
                </div>
            </a>

            {/volist}
        </div>
    </section>
</section>

</body>
</html>